package com.cooper.entity;

import java.math.BigDecimal;
import java.sql.Timestamp;

import com.cooper.constants.ResourceConstants;
import com.cooper.domain.Entity;

public class OrderInfo extends Entity {

	private static final long serialVersionUID = 5679553927232509919L;

	private String orderNum;
	private Long userId;
	private Long groupId;
	private BigDecimal totalPrice;
	private BigDecimal payment;
	/** 付款方式 NOT_PAY-未付款, ALIPAY - 即时到账, DEPOSIT - 预存款支付*/
	private String payType = ResourceConstants.PayType.NOT_PAY;
	private Timestamp gmtPaid;
	private Timestamp gmtConfirm;
	private Timestamp gmtConsign;
	private Timestamp gmtCompleted;
	private String tradeStatus = ResourceConstants.TradeStatus.ORDER_CREATED;
	private String closeReason;
	private String buyerMemo;
	private String sellerMemo;
	
	public String getOrderNum() {
		return orderNum;
	}
	public void setOrderNum(String orderNum) {
		this.orderNum = orderNum;
	}
	public Long getUserId() {
		return userId;
	}
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	public Long getGroupId() {
		return groupId;
	}
	public void setGroupId(Long groupId) {
		this.groupId = groupId;
	}
	public BigDecimal getTotalPrice() {
		return totalPrice;
	}
	public void setTotalPrice(BigDecimal totalPrice) {
		this.totalPrice = totalPrice;
	}
	public BigDecimal getPayment() {
		return payment;
	}
	public void setPayment(BigDecimal payment) {
		this.payment = payment;
	}
	public String getPayType() {
		return payType;
	}
	public void setPayType(String payType) {
		this.payType = payType;
	}
	public Timestamp getGmtPaid() {
		return gmtPaid;
	}
	public void setGmtPaid(Timestamp gmtPaid) {
		this.gmtPaid = gmtPaid;
	}
	public Timestamp getGmtConfirm() {
		return gmtConfirm;
	}
	public void setGmtConfirmed(Timestamp gmtConfirm) {
		this.gmtConfirm = gmtConfirm;
	}
	public Timestamp getGmtConsign() {
		return gmtConsign;
	}
	public void setGmtConsign(Timestamp gmtConsign) {
		this.gmtConsign = gmtConsign;
	}
	public Timestamp getGmtCompleted() {
		return gmtCompleted;
	}
	public void setGmtCompleted(Timestamp gmtCompleted) {
		this.gmtCompleted = gmtCompleted;
	}
	public String getTradeStatus() {
		return tradeStatus;
	}
	public void setTradeStatus(String tradeStatus) {
		this.tradeStatus = tradeStatus;
	}
	public String getBuyerMemo() {
		return buyerMemo;
	}
	public void setBuyerMemo(String buyerMemo) {
		this.buyerMemo = buyerMemo;
	}
	public String getSellerMemo() {
		return sellerMemo;
	}
	public void setSellerMemo(String sellerMemo) {
		this.sellerMemo = sellerMemo;
	}
	public String getCloseReason() {
		return closeReason;
	}
	public void setCloseReason(String closeReason) {
		this.closeReason = closeReason;
	}
	public void setGmtConfirm(Timestamp gmtConfirm) {
		this.gmtConfirm = gmtConfirm;
	}
	
}
